﻿@using SportsStore.Web.Models.Category
@model SportsStore.Web.Models.Category.CategoriesViewModel

@{
  Layout = null;
}

@Html.ActionLink("Home", "Index", "Product")

@foreach (var link in Model.Categories)
{
    @Html.RouteLink(link.Name, new
                          {
                            controller = "Product",
                            action = "Index",
                            category = link.Name,
                            page = 1
                          },
                          new
                            {
                              @class = link.Name == Model.CurrentCategory ? "selected" : null
                            })
}